﻿using _5E.NHibernateRepository;

namespace StoneAge.Infrastructure.Configuration
{
    public class ApplicationSettingsFactory
    {
        private static IApplicationSettings s_ApplicationSettings = null;
        public static IApplicationSettings ApplicationSettings { get { return s_ApplicationSettings; } }

        public static void InitializeApplicationSettingsFactory(IApplicationSettings applicationSettings)
        {
            s_ApplicationSettings = applicationSettings;
            SessionFactory.ConfigFilePath = applicationSettings.NHibernateConfigFilePath;
        }
    }
}
